import request from '@/utils/request'

// 查询论文表列表
export function listPapers(query) {
  return request({
    url: '/Papers/Papers/list',
    method: 'get',
    params: query
  })
}

// 查询论文表详细
export function getPapers(paperId) {
  return request({
    url: '/Papers/Papers/' + paperId,
    method: 'get'
  })
}

// 新增论文表
export function addPapers(data) {
  return request({
    url: '/Papers/Papers',
    method: 'post',
    data: data
  })
}

// 修改论文表
export function updatePapers(data) {
  return request({
    url: '/Papers/Papers',
    method: 'put',
    data: data
  })
}

// 删除论文表
export function delPapers(paperId) {
  return request({
    url: '/Papers/Papers/' + paperId,
    method: 'delete'
  })
}

export function listPaperByExpert() {
  return request({
    url: '/Papers/Papers/byExpert',
    method: 'get',
  })
}
